<?php defined('SYSPATH') or die('No direct script access.');

/**
 * Description of auth
 *
 * @author maki
 * omakolegmaki@gmail.com
 */
class Controller_Account_Account extends Template_Controller {

    public $template = 'master';
    public $auto_render = TRUE;

    public function __construct() {
        parent::__construct(); //necessary
    }

    public function action_index() {
        Request::instance()->redirect(
                Route::get("account")->uri(
                array ('action' => 'login')
        ));
    }
    public function action_login() {
        $this->template->content= 'login page in a template';
        $this->request->response = 'action_login';
    }
    public function action_logincommit() {
        $this->request->response = 'action_login';
    }

    public function action_logout() {
        $this->request->response = 'action_logout';
    }

    public function action_register() {
        $this->request->response = 'action_register';
    }
    public function action_registercommit() {
        $this->request->response = 'action_register';
    }

    public function action_changepass() {
        $this->request->response = 'action_changepass';
    }
    public function action_changepasscommit() {
        $this->request->response = 'action_changepass';
    }
}
?>
